﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace System
{
    /// <summary>
    /// Extensions 的摘要说明
    /// </summary>
    /// 
    public static class Extensions
    {
        /// <summary>
        /// ToString成【yyyy-MM-dd HH:mm:ss】格式的字符串
        /// </summary>
        /// <param name="tm"></param>
        /// <returns></returns>
        public static string ToDateTimeString(this DateTime tm)
        {
            return tm.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}